package com.neusoft.service;

import com.neusoft.dao.StudentDao;

/**
 * @Author: duan
 * @Date: Create in 16:53 2020/10/26
 */
public class StudentServiceImpl {
//    private StudentDao studentDao = new StudentDaoImpl();

    public StudentServiceImpl() {

    }

    public StudentServiceImpl(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    public void save() {
        try {
            studentDao.save();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
